#=begin
#
#@author Patrick de Pas
#Aldebaran Robotics (c) 2007 All Rights Reserved -This is an example of use.
#=end

puts '        START TESTING GVMsample MODULE'

#Checking AL_DIR
if ENV['AL_DIR'].nil?
  puts "ERROR : AL_DIR not defined!"
  exit 1
end

#________________________________
# Load the aldebaran Library
#________________________________
require ENV['AL_DIR']+'/extern/ruby/aldebaran/allib'

#________________________________
# Proxy creation 
#________________________________
$ip= '10.0.252.136'
#$ip= '127.0.0.1'
GVMsample_obj = Aldebaran::ALProxy.new("GVMsample", $ip)

#________________________________
# call the function saveImage
#________________________________
begin
  GVMsample_obj.saveImage( "/tmp/image.jpg")
rescue Exception
  puts "GVMsample test Failed"
end
puts 'saveImage'

puts '        END OF TEST OF GVMsample MODULE'
